public class Demo2 {
    public static void main(String[] args) {
        Thread t1=new Thread(()->{
            System.out.println("t1线程名："+Thread.currentThread().getName());
        });
        t1.start();
        System.out.println("main线程:"+Thread.currentThread().getName());
    }
}
